package com.yy.train.ticket.train.service.impl;

import com.yy.train.ticket.train.entity.TtStationEntity;
import com.yy.train.ticket.utils.R;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;



import com.yy.train.ticket.train.dao.TtLineStationDao;
import com.yy.train.ticket.train.entity.TtLineStationEntity;
import com.yy.train.ticket.train.service.TtLineStationService;

import javax.annotation.Resource;


@Service("ttLineStationService")
public class TtLineStationServiceImpl extends ServiceImpl<TtLineStationDao, TtLineStationEntity> implements TtLineStationService {
@Resource
    TtLineStationDao ttLineStationDao;

    @Override
    public R listStation(Long lineId) {
        List<TtStationEntity> list=this.ttLineStationDao.lineStation(lineId);
        return R.ok(list);
    }
}